home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 8: LINUX Games / Linux Cubed Series 8 - LINUX Games.iso / games / video / zapem-0.000 / zapem-0 / zapem / popgun.cc < prev    next >
C/C++ Source or Header  |  1995-03-30  |  534b  |  32 lines

  1. #include "sprite.h"
  2. #include "weapon.h"
  3. #include "projectile.h"
  4. #include "popgun.h"
  5. #include "effects.h"
  6. #include "options.h"
  7. extern "C"{
  8. #include "soundIt.h"
  9. }
  10.  
  11. Popgun :: Popgun( Sprite* anchor)  : Projectile( anchor, 10, 5, 5) 
  12. {
  13. }
  14.  
  15. void
  16. Popgun :: sound(int channel)
  17. {
  18.     if(option_effects)
  19.         Snd_effect(SND_POPGUN,channel);
  20. }
  21.  
  22. void
  23. Popgun :: move(void)
  24. {
  25.         for(int i=0;i<maxproj;i++)
  26.         {
  27.                 beam[i].move(0,-1);
  28.                 if(beam[i].getYp() < 0)
  29.                         beam[i].disappear();
  30.         }
  31. }
  32.